<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="application/javascript">
    let xxx=[{"xx1":"111","xx2":"222","xx3":"3333"}]
    let pp=[]
    f(pp,xxx)
    //pp里面有东西了
    alert(JSON.stringify(pp))

    function f(pp,xxx){
        //主要是用于强转后蹦出来api可以用
        for (let xx of Array.from(xxx)) {
            pp.push(xx)
        }
    }

</script>
</body>
</html>